leibnitz theorem problems with solutions